<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="ct" uri="/WEB-INF/tld/codeTranslateTag.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="${basePath}"/>
<link href="css/tableThinLine2.css" rel="stylesheet" type="text/css" />
<title>文章列表</title>
</head>
<body>

<c:choose>
	<c:when test="${not empty contentList}">
	<table id="t1" class="tabClass"  border="0" align="center" width="95%" cellpadding="0" cellspacing="0">
		<tr class="titleBg">	
			<!-- <td>序号</td> -->
			<!-- <td width="10"><input type="checkbox" /></td>-->
			<td width="">语言：</td>
			<td>栏目：</td>
			<!-- <td width="">提交用户：</td> -->
			<td width="">导航栏显示：</td>
			<td>首页滑动显示：</td>
			<td>PDF：</td>
			<td>标题：</td>
			<td>简介：</td>
			<td>提交时间：</td>
			<td>操作：</td>
			<!-- <td></td>
			<td></td>
			<td></td>-->
		</tr>
		<c:forEach items="${contentList}" var="content" varStatus="status">
		<tr>
			<td width=""><ct:codeTranslate code="langId.${content.langId}"/></td>
			<td><ct:codeTranslate code="underId.${content.underId}"/></td>
			<%-- <td width="">${content.userId}</td> --%>
			<td width=""><ct:codeTranslate code="isTitle.${content.isTitle}"/></td>
			<td><ct:codeTranslate code="isAdv.${content.isAdv}"/></td>
			<td><ct:codeTranslate code="havePdf.${content.havePdf}"/></td>
			<td>${content.title}</td>
			<td>${content.precontent}</td>
			<td><ct:formatDate longTime="${content.updatetime}"/> </td>
			<td>
			<a href="content/content_detail.htm?id=${content.id}">详细</a> /
			<a href="content/content_edit.htm?id=${content.id}" >编辑</a> / 
			<a href="content/content_del.htm?id=${content.id}" onclick="if(!confirm('确定要删除吗？'))return false;">删除</a></td>
		</tr>
		</c:forEach>
	</table>
	</c:when>
	<c:otherwise>
		没有文章
	</c:otherwise>
</c:choose>

</body>
</html>